// pages/index/index.js

Page({
  data: {
    userInfo: {}
  },
  onLoad: function (options) {
    // 页面初始化 options为页面跳转所带来的参数
    var that = this
    app.getUserInfo(function (userInfo) {
      that.setData({
        userInfo: userInfo
      })
    })
  },
  chatLogin: function () {
    wx.showModal({
      title: "提示",
      content: "微信登录暂不可用，请选择其他方式登录"
    })
    wx.login({
      success: function (res) {
        // success
        console.log(res)
      },
    })
  }
})